package com.simba.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 在线用户记录
 * </p>
 *
 * @author 陈俊 1002471284@qq.com
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user_online")
@ApiModel(value = "UserOnline对象", description = "在线用户记录")
public class UserOnline implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户会话id")
    @TableId(value = "sessionId", type = IdType.AUTO)
    private String sessionid;

    @ApiModelProperty(value = "登录账号")
    private String loginName;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "登录IP地址")
    private String ipaddr;

    @ApiModelProperty(value = "登录地点")
    private String loginLocation;

    @ApiModelProperty(value = "浏览器类型")
    private String browser;

    @ApiModelProperty(value = "操作系统")
    private String os;

    @ApiModelProperty(value = "在线状态on_line在线off_line离线")
    private String status;

    @ApiModelProperty(value = "session创建时间")
    private Date startTimestamp;

    @ApiModelProperty(value = "session最后访问时间")
    private Date lastAccessTime;

    @ApiModelProperty(value = "超时时间，单位为分钟")
    private Integer expireTime;


}
